package cn.tedu.boot3.controller;

import cn.tedu.boot3.entity.Emp;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @RequestMapping("/helloAxios")
    public String helloAxios(String info){

        return "测试成功"+info;
    }

    @RequestMapping("/helloPost")
    public String helloPost(Emp emp){
        System.out.println("emp="+emp);
        return "post测试成功!";
    }
}
